package com.irain.pp.tool.api.data;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author WangYanPeng
 * @date 2017/10/21 15:45
 */
public class OtherCondition {

    private Date gmtCreatedBegin;

    private Date gmtCreatedEnd;

    private Date gmtModifiedBegin;

    private Date gmtModifiedEnd;

    private Map<String,Boolean> orderByMap = new LinkedHashMap<>();

    public OtherCondition(){}

    public OtherCondition(String orderBy, boolean isAsc){
        addOrderBy(orderBy,isAsc);
    }

    public Date getGmtCreatedBegin() {
        return gmtCreatedBegin;
    }

    public void setGmtCreatedBegin(Date gmtCreatedBegin) {
        this.gmtCreatedBegin = gmtCreatedBegin;
    }

    public Date getGmtCreatedEnd() {
        return gmtCreatedEnd;
    }

    public void setGmtCreatedEnd(Date gmtCreatedEnd) {
        this.gmtCreatedEnd = gmtCreatedEnd;
    }

    public Date getGmtModifiedBegin() {
        return gmtModifiedBegin;
    }

    public void setGmtModifiedBegin(Date gmtModifiedBegin) {
        this.gmtModifiedBegin = gmtModifiedBegin;
    }

    public Date getGmtModifiedEnd() {
        return gmtModifiedEnd;
    }

    public void setGmtModifiedEnd(Date gmtModifiedEnd) {
        this.gmtModifiedEnd = gmtModifiedEnd;
    }

    public void addOrderBy(String orderBy,boolean isAsc) {
        this.orderByMap.put(orderBy,isAsc);
    }

    public Map<String,Boolean> getOrderByMap(){
        return orderByMap;
    }
}
